<template>
	<div>
		<top-nav bgColor="white" title="账户"  btnName="btn"  :rightShow="false" returnPath="factoryList"></top-nav>
		
		<div style="width: 100%;height: 3rem;"></div>
		
		<div v-show="showList">
		  <div style="padding:0.4rem 0.6rem;" v-for="item in list" >
		  		<section style="width: 100%;display: flex;flex-direction: column;background-color: white;">
		  			<section style="justify-content: left;align-items: center;display: flex;flex-direction: row;height: 2.8rem;padding: 0 0.5rem;">
		  				<span style="flex: 7;text-align: left;font-size: 1.1rem;">账户编号：{{item.BillNo}}</span>
		  				<!--<mu-icon style="flex: 1;" value="keyboard_arrow_right" :size="26"/>-->
		  			</section>
		  			<section style="display: flex;flex-direction: column;justify-content: center;justify-content: left;padding: 0 0.5rem;">
		  				<span  class="card-item-child">客户：{{item.CustomName}}</span>
		  <!--				<span class="card-item-child">编号：{{CustomNumber}}</span>-->
		  <!--				<span class="card-item-child">：{{materiel}}</span>-->
		  				<span class="card-item-child">余额：{{item.Balance}}</span>
		  <!--				<span class="card-item-child">备注：{{BillNo}}</span>-->
		  			</section>
		  			<mu-divider></mu-divider>
		  		</section>
		  	</div>
		  
		  
		  
         </div>
     	<div v-show="!showList">
		<mu-circular-progress :size="24" color="blue500"/>
		</div>	
<div style="width: 100%;height: 8rem;"></div>
	</div>
</template>

<script>
	 export default {
		data(){
			return{
				list:[],
				showList:false,
			}
		},
		mounted(){
			console.info(this.list)
			this.getAllOrder()
			
			
		},
		methods:{
			getAllOrder(){
				let that=this
				that.axios.post(that.global.homeSrc+'/hongchang/getAllOrder',{
				//that.axios.post('/demo/getAllOrder',{
					'factoryId':localStorage.factoryId,
					'uid':localStorage.uid,
					'currentpage':1
				}).then(function(response){
					console.info(response.data.data)
					that.showList=true
					that.list=response.data.data.list
				}).catch(function(error){
					console.info(error)
				})
			}
	 		}
	}
</script>

<style>
		.card-item-child{
		text-align: left;
		font-size: 0.9rem;
		height: 1.6rem;
		color: #939393;
	}
</style>